﻿#include "robothand.h"
#include "common_log.h"
#include "kuka/RobotHandKuKa.h"
#include "test/RobotHandTest.h"

RobotHand::RobotHand(QObject *parent)
	: QObject(parent)
{
}

RobotHand::~RobotHand()
{
}

RobotHand* RobotHand::GetInstanceByBrand(const RobotBrand& brand)
{
	RobotHand* rob = nullptr;
	switch (brand)
	{
	case RobotBrand::robot_brand_test:
		log_trace("TEST Robot");
		rob = new RobotHandTest(nullptr);
		break;
	case RobotBrand::robot_brand_kuka:
		log_error("库卡机械手");
		rob = new RobotHandKuka(nullptr);
		break;
	case RobotBrand::robot_brand_abb:
		log_trace("ABB 机械手")
			break;

	default:
		break;
	}

	return rob;
}
